import { createRouter, createWebHashHistory } from "vue-router";


export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            redirect: "/Admin"
        }, {
            path: "/Login",
            component: () => import("../views/Login/Login.vue")
        }, {
            path: "/Admin",
            component: () => import("../views/Admin/index.vue"),
            children: [
                {
                    path: "RotationChack",
                    component: () => import("../views/Admin/Rotation/RotationChack.vue")
                }, {
                    path: "RotationAdd",
                    component: () => import("../views/Admin/Rotation/RotationAdd.vue")
                }, {
                    path: "test",
                    component: () => import("../views/test.vue")
                }, {
                    path: "AdminList",
                    component: () => import("../views/Admin/Adminer/AdminList.vue")
                }, {
                    path: "AdminAdd",
                    component: () => import("../views/Admin/Adminer/AdminAdd.vue")
                }, {
                    path: "GoodsAdd",
                    component: () => import("../views/Admin/Goods/GoodsAdd.vue")
                }, {
                    path: "GoodsList",
                    component: () => import("../views/Admin/Goods/GoodsList.vue")
                }
            ]
        }
    ]
})